package org.shuker.executor;

import org.shuker.pojo.Configuration;
import org.shuker.pojo.MappedStatement;

import java.sql.SQLException;
import java.util.List;

/**
 * @author ：Shuker
 * @date ：Created in 2022/6/14 11:37
 * @description：执行器
 * @version: 1.0
 */
public interface Executor {
    <E> List<E> query(Configuration configuration, MappedStatement mappedStatement, Object[] param) throws Exception;

    int update(Configuration configuration,MappedStatement mappedStatement,Object[] param) throws Exception;

    void close() throws SQLException;
}
